/**
 * @author zhangqiang
 * @date   17/7/18
 */
import React, {Component} from 'react';
import {Link} from 'react-router'
import {Toast} from 'antd-mobile';
import style from './passAddNumber.scss';

class CarNumberItem extends Component {
    constructor(props) {
        super(props);

    }

    toUrl(url) {
      this.context.router.push(url);
    }
    render() {
        return 	(
          <div className={style.passBox} onClick={()=>{this.toUrl('twAddPass')}}>
            <div className={style.toAdd}>
                <img src="./images/add.png" alt=""/>
            </div>
            <div className={style.toAddText}>添加台湾通行证</div>
           </div>)
    }
}
//使用context
CarNumberItem.contextTypes = {
    router: React.PropTypes.object.isRequired
};

export default CarNumberItem